package com.qf.api.point;

import com.qf.api.config.FeignConfig;
import com.qf.api.dto.PointDTO;
import com.qf.api.fallback.PointFeignFallback;
import com.qf.common.core.common.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * --- 缘分让我们相遇乱世以外 ---
 *
 * @author SJY
 * 2025/1/4
 * configuration = FeignConfig.class  指定FeignConfig配置类
 */
@FeignClient(value = "micro-user",
        fallbackFactory = PointFeignFallback.class,
        configuration = FeignConfig.class
        )
public interface PointFeignService {
    @PostMapping("/user/point/add/remote")
    // dao数据传输对象
    R remoteAddPoint(@RequestBody PointDTO pointDTO);

    @PostMapping("/user/point/add/rule")
    R selPointRule(@RequestBody PointDTO pointDTO);
}


